<?php 
	include_once 'thuvienham.php';
	include_once 'trangthai_db.php';

	class trangthai_bs 
	{
		//------------------Fields [2]------------------
			// #0
		private $MaTrangThai = -1;
		public function SetMaTrangThai($MaTrangThai) { $this->MaTrangThai = $MaTrangThai; }
		public function GetMaTrangThai() { return $this->MaTrangThai; }
			// #1
		private $TenTrangThai = "";
		public function SetTenTrangThai($TenTrangThai) { $this->TenTrangThai = $TenTrangThai; }
		public function GetTenTrangThai() { return $this->TenTrangThai; }

		//------------------Method------------------
		public function Them()
		{
			$data = new trangthai_db();
			return $data->Them($this->MaTrangThai, $this->TenTrangThai);
		}

		public function Xoa()
		{
			$data = new trangthai_db();
			return $data->Xoa($this->MaTrangThai);
		}

		public function CapNhat()
		{
			$data = new trangthai_db();
			return $data->CapNhat($this->MaTrangThai, $this->TenTrangThai);
		}

		public function LayDanhSach()
		{
			$data = new trangthai_db();
			return $data->LayDanhSach($this->MaTrangThai, $this->TenTrangThai);
		}

	}

